package com.baidu.mpks.exception;

public enum ApiExceptionCode {

    LOGIN_PASSWORD_ERROR(10001, "密码错误");

    private int value;

    private String desc;

    private String prefix = "10";

    private ApiExceptionCode(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public int getValue() {
        String valueStr = String.valueOf(value);
        String finalValue = prefix + valueStr;
        return Integer.parseInt(finalValue);
    }

    public void setValue(int value) {
        this.value = value;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}